import BaseSeeder from '@ioc:Adonis/Lucid/Seeder'
import Spus from "App/Models/Spus";
export default class SpusSeeder extends BaseSeeder {
  public async run () {
      let spuArray=new Array();
      for (let i=0;i<300;i++){
         spuArray.push({
             name:"商品"+i,
             description:'商品描述'+i
         })
      }
      await Spus.createMany(spuArray)
  }
}
